
import 'dart:ui' as ui;

import 'package:flutter_book/util/file_util.dart';
import 'package:get/get.dart';


class TempData{

  static List swiperList = [
    'https://img2.baidu.com/it/u=2787722222,911094603&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=889',
    'https://img1.baidu.com/it/u=2129910732,4166433648&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=889',
    'https://img2.baidu.com/it/u=238527078,4125075073&fm=253&fmt=auto&app=120&f=JPEG?w=800&h=1422',
    'https://img2.baidu.com/it/u=3861268395,1735248225&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=889',
    'https://img0.baidu.com/it/u=13334134,2287811953&fm=253&fmt=auto&app=120&f=JPEG?w=800&h=1422',
    'https://img0.baidu.com/it/u=1029826822,3646606163&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=889',
    'https://img2.baidu.com/it/u=3505931400,1932360892&fm=253&fmt=auto&app=120&f=JPEG?w=800&h=1422',
    'https://img1.baidu.com/it/u=1708021027,2376754036&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=800',
  ];



  static Future<List<ui.Image>> getImageList()async{
    List<ui.Image> listImage=[];
    listImage.add(await FileUtil.getImage(swiperList[0],Get.width+5,Get.height+5));
    listImage.add(await FileUtil.getImage(swiperList[1],Get.width+5,Get.height+5));
    listImage.add(await FileUtil.getImage(swiperList[2],Get.width+5,Get.height+5));
    listImage.add(await FileUtil.getImage(swiperList[3],Get.width+5,Get.height+5));
    listImage.add(await FileUtil.getImage(swiperList[4],Get.width+5,Get.height+5));
    listImage.add(await FileUtil.getImage(swiperList[5],Get.width+5,Get.height+5));
    listImage.add(await FileUtil.getImage(swiperList[6],Get.width+5,Get.height+5));
    listImage.add(await FileUtil.getImage(swiperList[7],Get.width+5,Get.height+5));
    return listImage;
  }
  static Future<List<ui.Picture>> getPictureList()async{
    List<ui.Picture> listPicture=[];
    listPicture.add(await FileUtil.getPicture(swiperList[0],Get.width+5,Get.height+5));
    listPicture.add(await FileUtil.getPicture(swiperList[1],Get.width+5,Get.height+5));
    listPicture.add(await FileUtil.getPicture(swiperList[2],Get.width+5,Get.height+5));
    listPicture.add(await FileUtil.getPicture(swiperList[3],Get.width+5,Get.height+5));
    listPicture.add(await FileUtil.getPicture(swiperList[4],Get.width+5,Get.height+5));
    listPicture.add(await FileUtil.getPicture(swiperList[5],Get.width+5,Get.height+5));
    listPicture.add(await FileUtil.getPicture(swiperList[6],Get.width+5,Get.height+5));
    listPicture.add(await FileUtil.getPicture(swiperList[7],Get.width+5,Get.height+5));
    return listPicture;
  }
}